package com.xt.purchasingsystem;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;

/**
 * @author: 老姚
 * Date:  2020/5/19 11:49
 */
@SpringBootApplication
@EnableDiscoveryClient
//客户端Hystrix启动注解 用来服务降级
//@EnableHystrix
//服务器端Hystrix启动注解  用来服务熔断
@EnableCircuitBreaker
@MapperScan("com.xt.purchasingsystem.mapper")
public class AuthorityManageMain {
    public static void main(String[] args) {
            SpringApplication.run(AuthorityManageMain.class, args);
        }
}
